package com.cx.mapper;

import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface RoleMapper {
    int addRoles(@Param("userId") long id, @Param("roleId") Long member);

    @Delete("delete from user_role where user_id = #{id}")
    void deleteRoleByUserId(Long id);
}
